package com.sunbim.rsrv.service.impl;

import com.sunbim.rsrv.pojo.Protection;
import com.sunbim.rsrv.mapper.ProtectionMapper;
import com.sunbim.rsrv.service.ProtectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文物保护工程 服务实现类
 * </p>
 *
 * @author yuhui
 * @since 2022-01-16
 */
@Service
public class ProtectionServiceImpl extends ServiceImpl<ProtectionMapper, Protection> implements ProtectionService {

    @Autowired
    ProtectionMapper protectionMapper;

    @Override
    public List<Map<String, Object>> selectByRelicsId(Integer relicsId) {
        return protectionMapper.selectByRelicsId(relicsId);
    }

    @Override
    public void deleteBatchById(List<Integer> ids) {
        protectionMapper.deleteBatchIds(ids);
    }

}
